package com.frkj.yuan.fragment.order;
import com.frkj.yuan.R;
import com.frkj.yuan.base.BaseFragment;
import com.frkj.yuan.view.BottomBarView;
import butterknife.BindView;

/**
 * 作者：菲菲 on 2022/2/11 11:23
 * company：丰蓉信息科技有限公司
 */
public class OrderFragment extends BaseFragment {
    @BindView(R.id.order_bottombar)
    BottomBarView bottomBarView;
    @Override
    public int getLayoutResource(){
        return R.layout.fragment_order_view;
    }
    @Override
    public void initLayoutView(){
        initView();
    }
    private void initView() {
        bottomBarView.setContainer(R.id.frame_order)
                .setTitleBeforeAndAfterColor("#333333", "#ff512f")
                .setTitleSize(13)
                .setTitleIconMargin(12)
                .addItem(OrderAllFragment.class,
                        "全部",
                        R.drawable.grew_all_bg,
                        R.drawable.red_all_bg)
                .addItem(ObligationOrderFragment.class,
                        "待付款",
                        R.drawable.grew_dai_bg,
                        R.drawable.red_dai_bg)
                .addItem(TobeServedFragment.class,
                        "待服务",
                        R.drawable.grew_fuwu_bg,
                        R.drawable.red_fuwu_bg)
                .addItem(FuwuZhongFragment.class,
                        "服务中",
                        R.drawable.grew_fuwu_zhong_bg,
                        R.drawable.red_fuwu_zhong_bg)
                .addItem(CompleteFragment.class,
                        "已完成",
                        R.drawable.grew_wanchegn_bg,
                        R.drawable.red_wanchegn_bg)
                .build();
    }


}
